You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > TOpenCLValue.Rem Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.Rem Method

The Reminder after division X/Y.

Syntax
C#
Visual Basic
public TOpenCLValue Rem([In] TOpenCLValue X, [In] TOpenCLValue Y);

Calculates reminder after division according to formula: 

x[i]-y[i]*Trunc(const X[i]/y[i]). 

The result will be saved to the calling vector. X and Y must be a real and have the same length. FloatPrecision and TOpenCLBase.ComplexComplex properties of the calling vector are set implicitly to match the X object.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLValue a,b,c; clMtxVec.CreateIt(out a, out b, out c); try { a.Copy(4); b.Copy(3); c.Rem(a,b); // c = Rem(4,3) } finally { clMtxVec.FreeIt(ref a,ref b,ref c); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!